#encoding:utf8 
import os, sys


#-获取collection内所有的数据
# return :[list]
def get_dbcolt_list(dbcollection):
	tarlist = []
	count = dbcollection.count() 
	cour = dbcollection.find()
	for i in range(count):
		obj = cour.next()
		tarlist.append(obj)
	return tarlist